package com.sky.shop.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Shop;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 店铺管理 mapper
 */
@Mapper
public interface ShopMapper {


    /**
     * 修改店铺营业状态
     */
    @AutoFill(value = OperationType.UPDATE)
    Integer updateShopStatus(Shop shop);


    /**
     * 查询店铺营业状态
     */
    Integer selectShopStatus(Shop shop);


    /**
     * 定时任务
     * 根据店铺名称和营业状态 查询
     */
    Shop selectShopByNameAndStatus(@Param("shopName")String shopName, @Param("status")Integer status);

}
